package com.cjx.stars.constant;

import lombok.Data;

/**
 * @author cjx
 * @description 请求失败信息类
 * @createDate 2024/2/28 21:27
 **/
public enum FailMessage {
    /**
     * 错误码和错误信息
     */
    ERROR_USERNAME_REPETITION(40001,"用户名重复"),
    ERROR_INCORRECT_FORMAT(40002,"格式不正确"),
    ERROR_PASSWORD_INCONSISTENT(40003,"两次密码不一致"),
    ERROR_SYSTEM(50000,"内部系统错误"),
    ERROR_PARAMETER_IS_BLACK(40004,"参数为空"),
    ERROR_ACCOUNT_OR_PASSWORD_MISTAKE(40005,"账号或密码错误"),
    ERROR_THE_USER_IS_NOT_LOGGED_IN(40301,"用户未登录"),
    ERROR_VERIFICATION_CODE_HAS_EXPIRED(40006,"验证码已过期"),
    ERROR_VERIFICATION_CODE_IS_INCONSISTENT(40007,"验证码不一致"),
    ERROR_THE_USER_IS_NOT_LOGGED_IN_NOT_SEARCH(40302,"用户未登录，请登录后搜索"),
    ERROR_INSUFFICIENT_PERMISSIONS(40303,"权限不足"),
    ERROR_THE_TEAM_DOES_NOT_EXIST(40008,"队伍不存在"),
    THE_QUEUE_IS_FULL(40009,"队伍已满"),
    PRIVATE_TEAMS_ARE_NOT_ALLOWED_TO_JOIN(40010,"私有队伍不允许加入"),
    PLEASE_ENTER_YOUR_PASSWORD(40011,"请输入密码"),
    WRONG_PASSWORD(40012,"密码错误"),
    DUPLICATE_PARTY_REJOINS_ARE_NOT_PERMITTED(40013,"不允许重复加入队伍"),
    USER_NOT_JOIN_THE_TEAM(40014,"用户未加入该队伍"),
    NOT_TEAM(40015,"已无队伍"),
    FILE_DATA_IS_EMPTY(40016,"文件数据为空"),
    FAILED_UPLOAD_AVATAR(40017,"头像上传失败"),
    FAILED_INSERT_BLOG(40018,"博文插入失败"),
    PARAMETER_ABNORMAL(40019,"参数异常"),
    NOT_THE_BLOG(40020,"未查询到此博文"),
    NOT_THE_BLOG_AUTHOR(40021,"未查询到作者信息"),
    COMMENT_FAILED(40022,"评论失败"),
    FAILED_TO_LIKE(40023,"点赞失败"),
    THE_COMMENT_NOT(40024,"该评论不存在"),
    THE_COMMENT_INFORMATION_IS_ABNORMAL(40025,"评论信息异常"),
    FAILED_TO_DELETE_COMMENT(40026,"删除评论失败"),
    IMAGE_UPLOAD_FAILED(40027,"图片上传失败"),
    FAILED_TO_DELETE_THE_BLOG_POST(40028,"博文删除失败"),
    FAILED_TO_EDIT_THE_BLOG_POST(40029,"修改博文失败"),
    THE_USER_DOES_NOT_EXIST(40030,"用户不存在"),
    UNFOLLOW_FAILED(40031,"取消关注失败"),
    FOLLOW_FAILED(40032,"关注失败"),
    QUERY_FAILED(40033,"查询失败"),
    THE_SENDER_DOES_NOT_EXIST(40034,"发送人不存在"),
    NOT_CODE(40035,"请输入验证码"),
    PLEASE_SEND_THE_VERIFICATION_CODE_FIRST(40036,"请先发送验证码"),
    ETHE_VERIFICATION_CODE_IS_INCORRECT(40037,"验证码错误"),
    THE_MOBILE_PHONE_NUMBER_HAS_BEEN_BOUND(40038,"该手机号已被绑定"),
    THE_EMAIL_ADDRESS_HAS_BEEN_BOUND(40039,"该邮箱已被绑定"),
    THE_SMS_MESSAGE_IS_SENT_ABNORMALLY(40040,"短信服务异常"),
    THE_MOBILE_PHONE_NUMBER_IS_NOT_BOUND_TO_AN_ACCOUNT(40041,"该手机号未绑定账号"),
    ;

    FailMessage() {
    }

    private  int code;
    private  String message;

    private FailMessage(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
